package com.woniuxy.main.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.UpdateProvider;

import com.woniuxy.main.pojo.Gym;

import com.woniuxy.main.provider.GymProvider;


public interface GymMapper {
	//创建场馆
	@Insert("insert into gym(uid) values(#{uid})")
	public int insertGym(int uid);
	
   //更新场馆信息
   @UpdateProvider(type=GymProvider.class,method="gymUpdate")
	public int updateGym(Gym gym);
   
   // gid查询场馆
   @Select("select * from Gym where gid = #{gid}")
   public Gym findGymByGid(int gid);
}
